<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateQikansTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('qikans', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('book_id')->comment('书籍id')->nullable();
            $table->string('book_name')->comment('书籍名称')->nullable();
            $table->string('current_update_year')->comment('当前更新年份')->nullable();
            $table->string('current_update_month')->comment('当前更新月份')->nullable();
            $table->string('update_time')->comment('服务器拉取当前书籍最后更新时间')->nullable();
            $table->string('issn')->comment('issn')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('qikans');
    }
}
